DESCRIPTION = "A Robot image with more full-featured + ROS + OpenCV Linux system functionality installed."

LICENSE = "MIT"

inherit core-image
inherit ros_distro_${ROS_DISTRO}
inherit ${ROS_DISTRO_TYPE}_image

IMAGE_FEATURES += " \
    tools-profile \
    splash \
    ssh-server-dropbear \
    hwcodecs \
"
ISP_PKGS = ""
ISP_PKGS_mx8mp = "packagegroup-imx-isp"
ML_PKGS_mx8                = "packagegroup-imx-robot-ml"
ML_STATICDEV_mx8           = "tensorflow-lite-staticdev"

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-tools-bluetooth \
    packagegroup-fsl-tools-gpu \
    packagegroup-fsl-tools-gpu-external \
    packagegroup-imx-core-tools \
    cryptodev-module \
    cryptodev-tests \
    openssl-bin \
    gmssl-bin \
    imx-test \
    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', ' weston weston-init','', d)} \
    ${ISP_PKGS} \
"
IMAGE_INSTALL += " \ 
    ${ML_PKGS} \
    ros-core \
"

TOOLCHAIN_TARGET_TASK += " \
    ${ML_STATICDEV} \
"
